package com.woniuxy.uumsserver.controller;

import com.woniuxy.uumsserver.service.FinanceUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    private FinanceUserService userService;

    @PostMapping("/login")
    public String login(String username,String password){
        return userService.login(username,password);
    }
}
